-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Multi-Folder Backups #428
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for lodestone-dashboard canceled.
|
✅ Deploy Preview for lodestone-storybook canceled.
|
example-macros/auto-backup/index.ts
Outdated
if (config.compressBackup) { | ||
try { | ||
await eventStream.emitConsoleOut(`[Backup Macro] Compressing backup...`); | ||
await compress(`${combinedBackupFolder}`, `${instancePath}/${config.backupFolderRelative}/${combinedBackupFolder}.zip`); | ||
await eventStream.emitConsoleOut(`[Backup Macro] Compression completed.`); | ||
} catch (e) { | ||
console.log(`[Backup Macro] Error compressing backup folder:`, e); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CheatCod this part is my attempt at adding compression
Compression of backups on instances with spaces in their name does not work because that same space is showing up in the path. If you are ok with it, @CheatCod I would like to create a pr to change that behavior to create instance folders with hyphens. |
Description
I added the ability to specify a list of folders to back up, as I wanted to back up the end and nether as well, and large servers may want to back up lobbies or assorted worlds. I also tried setting up compression using the zip module, but I am unsure of why it is not working, any pointers?.
Type of change